//
//  ViewController.m
//  block
//
//  Created by 李伟 on 16/1/23.
//  Copyright © 2016年 李伟. All rights reserved.
//

#import "ViewController.h"
#import "TransDataController.h"


@interface ViewController ()

@property (weak, nonatomic) IBOutlet UILabel *lb_show;

@end

@implementation ViewController

- (void)viewDidLoad {
    [super viewDidLoad];
    // Do any additional setup after loading the view, typically from a nib.
}

- (void)didReceiveMemoryWarning {
    [super didReceiveMemoryWarning];
    // Dispose of any resources that can be recreated.
}

- (IBAction)clickBtn:(UIButton *)sender {
    
    TransDataController *controller = [TransDataController new];
    
    controller.myBlock = ^(NSString *str){
        
        self.lb_show.text = str;
        
    };
    
    [self.navigationController pushViewController:controller animated:YES];
    
    
}

@end
